import { createApp } from 'vue'
import App from './App.vue'
import { createPinia } from 'pinia' //菠萝
import { regAllDirective } from './directives' //全局自定义指令
import router from './router' //路由
import "@/assets/style.less" //样式初始化
import 'element-plus/dist/index.css' //组件样式
import "@/assets/iconfont.less" //菜单 iconfont

const pinia = createPinia()

const app = createApp(App)
regAllDirective(app); //注册指令
app.use(router) //注册路由
app.use(pinia) //注册菠萝
app.mount('#app') //挂载
